Skip to content

feat: pass end_exchange through to UiPathChatRuntime [JAR-9933]#1720

Open
andrewwan-uipath wants to merge 1 commit into
mainfrom
feat/cas-allow-optionally-end-exchange
Open

feat: pass end_exchange through to UiPathChatRuntime [JAR-9933]#1720
andrewwan-uipath wants to merge 1 commit into
mainfrom
feat/cas-allow-optionally-end-exchange

Conversation

@andrewwan-uipath

Copy link
Copy Markdown
Contributor
  • Honor the endExchange fpsProperty in conversational runs
  • Passes end_exchange=ctx.end_exchange into UiPathChatRuntime at both construction sites (cli_run.py, cli_debug.py), so the conversationalService.endExchange property added in uipath-runtime 0.12.0 actually takes
    effect. When false, the exchange-end event is skipped and the exchange stays open for a downstream consumer.
  • related to this PR: feat: allow conversational agents to optionally end exchange [JAR-9933] uipath-runtime-python#127

@sonarqubecloud

Copy link
Copy Markdown

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

This PR updates the uipath CLI’s conversational execution wiring to honor the conversationalService.endExchange FPS property by passing end_exchange=ctx.end_exchange into UiPathChatRuntime, leveraging behavior introduced in uipath-runtime 0.12.0.

Changes:

  • Pass end_exchange=ctx.end_exchange when constructing UiPathChatRuntime in both run and debug CLI flows.
  • Add CLI tests to validate default exchange-end emission and suppression when endExchange=false.
  • Bump uipath-runtime dependency to >=0.12.0, <0.13.0 and increment package version.

Reviewed changes

Copilot reviewed 5 out of 5 changed files in this pull request and generated no comments.

Show a summary per file
File Description
packages/uipath/src/uipath/_cli/cli_run.py Passes ctx.end_exchange into UiPathChatRuntime so conversational end-exchange behavior can be controlled via FPS properties.
packages/uipath/src/uipath/_cli/cli_debug.py Same end_exchange pass-through for the debug command’s conversational wrapper.
packages/uipath/tests/cli/test_run.py Adds coverage verifying exchange-end event is emitted by default and skipped when endExchange=false.
packages/uipath/tests/cli/test_debug_chat.py Adds coverage verifying end_exchange is forwarded into the UiPathChatRuntime constructor in debug.
packages/uipath/pyproject.toml Updates package version and bumps uipath-runtime to the compatible range that includes endExchange support.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

@andrewwan-uipath andrewwan-uipath requested a review from maxduu June 16, 2026 20:19
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

test:uipath-integrations test:uipath-langchain Triggers tests in the uipath-langchain-python repository

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants